package com.bawei.library_mvi.ui

import androidx.databinding.ViewDataBinding
import com.bawei.library_mvi.IIntent
import com.bawei.library_mvi.IView
import com.bawei.library_mvi.model.BaseViewModel
import com.bawei.library_mvi.model.IModel

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/19 16:23
 * @Description : BaseMviActivity
 */
abstract class BaseMviActivity<VDB:ViewDataBinding>:BaseActivity<VDB>(), IView {

    abstract fun generateViewModel() //返回viewmodel
    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }
    /**
     * onReesume处理状态：根据UIState做出相应的处理
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }




}